/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package uk.ac.bath.schemes;

import uk.ac.bath.environment.MachineIF;
import uk.ac.bath.environment.Fitness;
import uk.ac.bath.environment.Scheme;

/**
 *
 * @author pjl
 */
public class RandomScheme implements Scheme {

    private BuilderIF builder;
    int cnt=0;
    
    public RandomScheme(BuilderIF builder) throws Exception {
        this.builder = builder;
    }

    public void init() {
    }

    public MachineIF nextMachine() {
        cnt++;
        MachineIF net = builder.createRandomMachine();    /*form the network*/
        return net;
    }

    @Override
    public void endOfEvaluation(Fitness fitness) {
    }

    public String getStatus() {
        return "RandomScheme:"+cnt;
    }

    public String reportSetup() {
       return " Shceme: Random guesses \n"+builder.reportSetup();
    }
}


